package com.smgeek.gkrpc.example;

import com.smgeek.gkrpc.client.RpcClient;
import com.smgeek.gkrpc.client.RpcClientConfig;

public class Client {

    public static void main(String[] args) {
        RpcClient rpcClient = new RpcClient(new RpcClientConfig());
        CalcService service = rpcClient.getProxy(CalcService.class);

        int r1= service.add(1,2);
        int r2= service.minus(10,3);
        System.out.println(r1);
        System.out.println(r2);

    }
}
